package shujia.day09;

/*
    Character是char基本数据类型的包装类

    八大基本数据类型对应的包装类都具备了自动装箱和自动拆箱的功能

    Character类中常用方法：
        public static boolean isUpperCase(char ch)
        public static boolean isLowerCase(char ch)
        public static boolean isDigit(char ch)
        public static char toUpperCase(char ch)
        public static char toLowerCase(char ch)

 */
public class CharacterDemo1 {
    public static void main(String[] args) {
//        Character c1 = 'a'; // 自动装箱
//        Character c2 = new Character('a');


        char c1 = '5';

        // public static boolean isUpperCase(char ch) 判断一个字符是否是大写
        System.out.println(Character.isUpperCase(c1));
        System.out.println(Character.isLowerCase(c1));

        //public static boolean isDigit(char ch) 判断一个字符内容是否是一个数字
        System.out.println(Character.isDigit(c1));

        // public static char toUpperCase(char ch) 字符串转大写
        System.out.println(Character.toUpperCase('q'));
        System.out.println(Character.toLowerCase('Y'));


    }
}
